package com.pinusmusic.dao;

import com.pinusmusic.domain.Singer;
import com.pinusmusic.domain.User;

import java.util.List;

public interface UserDao {
    boolean findUserByUsernameAndUserpassword(String username, String userpassword);

    boolean findUserByUsername(String username);

    void insertUser(User user);

    void updateInformation(User user);

    User findByUserName(String name);

    void updateCodeByUsername(String code,String name);

    User findByEmail(String email);

    void  updatePwdByEmail(String newPwd,String email);

    void updateVipcodeByUsername(String uuid, String username);

    User findByVipCode(String vipcode);

    void updateVipStatus(User user);

    List<User> findUserByName(String username);
    //用户模糊查询
    List<User> findUsersByName(int start, int rows, String name);

    int getLikeCount(String name);

    User findUserById(Integer uid);

    //2.0
//    User findUserByUid(int uid);
    //lwj


}
